<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>v_csc: V_csc_v1_0</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.gif"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">v_csc
   </div>
   <div id="projectbrief">Xilinx SDK Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Overview</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="globals.html"><span>APIs</span></a></li>
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">V_csc_v1_0</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:gabef8eb94c4d5565838ad595ba71248de"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#gabef8eb94c4d5565838ad595ba71248de">XV_CscSetColorDepth</a>(pCscFwReg,  val)  &#160;&#160;&#160;((pCscFwReg)-&gt;ColorDepth = val)</td></tr>
<tr class="separator:gabef8eb94c4d5565838ad595ba71248de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaee13addb78f4259e779282850de811db"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#gaee13addb78f4259e779282850de811db">XV_CscGetBrightness</a>(pCscFwReg)            &#160;&#160;&#160;(((pCscFwReg)-&gt;Brightness-20)/2)</td></tr>
<tr class="separator:gaee13addb78f4259e779282850de811db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac8781d64df298b2fdf816fd8d43f27ee"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#gac8781d64df298b2fdf816fd8d43f27ee">XV_CscGetContrast</a>(pCscFwReg)                &#160;&#160;&#160;(((pCscFwReg)-&gt;Contrast+200)/4)</td></tr>
<tr class="separator:gac8781d64df298b2fdf816fd8d43f27ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga993ec962adf8ab27dcab21bd56f47926"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga993ec962adf8ab27dcab21bd56f47926">XV_CscGetSaturation</a>(pCscFwReg)            &#160;&#160;&#160;(((pCscFwReg)-&gt;Saturation/2))</td></tr>
<tr class="separator:ga993ec962adf8ab27dcab21bd56f47926"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga63fc67278726139086bc86bf2ad2b26c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga63fc67278726139086bc86bf2ad2b26c">XV_CscGetRedGain</a>(pCscFwReg)                  &#160;&#160;&#160;(((pCscFwReg)-&gt;RedGain-20)/2)</td></tr>
<tr class="separator:ga63fc67278726139086bc86bf2ad2b26c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga138fb789a73e75327cdd4f19f00d2ed2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga138fb789a73e75327cdd4f19f00d2ed2">XV_CscGetGreenGain</a>(pCscFwReg)              &#160;&#160;&#160;(((pCscFwReg)-&gt;GreenGain-20)/2)</td></tr>
<tr class="separator:ga138fb789a73e75327cdd4f19f00d2ed2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga108893993f5612e665a660d555d2a85c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga108893993f5612e665a660d555d2a85c">XV_CscGetBlueGain</a>(pCscFwReg)                &#160;&#160;&#160;(((pCscFwReg)-&gt;BlueGain-20)/2)</td></tr>
<tr class="separator:ga108893993f5612e665a660d555d2a85c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafc9516955a3c96103e7eeb26e2a5866a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#gafc9516955a3c96103e7eeb26e2a5866a">XV_CscGetColorFormatIn</a>(pCscFwReg)      &#160;&#160;&#160;((pCscFwReg)-&gt;ColorFormatIn)</td></tr>
<tr class="separator:gafc9516955a3c96103e7eeb26e2a5866a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga824cfd141b60b80762302011fc30eb7d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga824cfd141b60b80762302011fc30eb7d">XV_CscGetColorFormatOut</a>(pCscFwReg)    &#160;&#160;&#160;((pCscFwReg)-&gt;ColorFormatOut)</td></tr>
<tr class="separator:ga824cfd141b60b80762302011fc30eb7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac3a19a1ea0eb2bc79843b99b4fa06ed3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#gac3a19a1ea0eb2bc79843b99b4fa06ed3">XV_CscGetColorStdIn</a>(pCscFwReg)            &#160;&#160;&#160;((pCscFwReg)-&gt;StandardIn)</td></tr>
<tr class="separator:gac3a19a1ea0eb2bc79843b99b4fa06ed3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga22b4ba50722d0e879a147450f5584b88"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga22b4ba50722d0e879a147450f5584b88">XV_CscGetColorStdOut</a>(pCscFwReg)          &#160;&#160;&#160;((pCscFwReg)-&gt;StandardOut)</td></tr>
<tr class="separator:ga22b4ba50722d0e879a147450f5584b88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga379d39f4ac6437e9d7b8e30b013c0cb0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga379d39f4ac6437e9d7b8e30b013c0cb0">XV_CscGetOutputRange</a>(pCscFwReg)          &#160;&#160;&#160;((pCscFwReg)-&gt;OutputRange)</td></tr>
<tr class="separator:ga379d39f4ac6437e9d7b8e30b013c0cb0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga68432f271ffd43e68f01d1463ae33efc"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga68432f271ffd43e68f01d1463ae33efc">XV_CSC_REG_UPDT_WIN</a> <tr class="separator:ga68432f271ffd43e68f01d1463ae33efc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</td></tr>
<tr class="memitem:ga5727999afb7f47264f4cd625c8b56f8a"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga5727999afb7f47264f4cd625c8b56f8a">XV_CSC_FW_REG_MMAP</a> <tr class="separator:ga5727999afb7f47264f4cd625c8b56f8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga477fdd65df9d12589cb2c229eef77d2d"><td class="memItemLeft" align="right" valign="top">__inline void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga477fdd65df9d12589cb2c229eef77d2d">cscFw_RegW</a> (<a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a> *pCscFwReg, u32 offset, s32 val)</td></tr>
<tr class="separator:ga477fdd65df9d12589cb2c229eef77d2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafb05e2da9695565fba27b542a24b5c9d"><td class="memItemLeft" align="right" valign="top">__inline s32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#gafb05e2da9695565fba27b542a24b5c9d">cscFw_RegR</a> (<a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a> *pCscFwReg, u32 offset)</td></tr>
<tr class="separator:gafb05e2da9695565fba27b542a24b5c9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0b7c1083efbd024fb713f1c2ff866236"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga0b7c1083efbd024fb713f1c2ff866236">XV_CscStart</a> (<a class="el" href="struct_x_v__csc.html">XV_csc</a> *InstancePtr)</td></tr>
<tr class="separator:ga0b7c1083efbd024fb713f1c2ff866236"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa7f7e27accbaf3e3c9c863b55f13a0b1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#gaa7f7e27accbaf3e3c9c863b55f13a0b1">XV_CscStop</a> (<a class="el" href="struct_x_v__csc.html">XV_csc</a> *InstancePtr)</td></tr>
<tr class="separator:gaa7f7e27accbaf3e3c9c863b55f13a0b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4629d6073e73f853f1a0f2cd0a8389a6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga4629d6073e73f853f1a0f2cd0a8389a6">XV_CscSetActiveSize</a> (<a class="el" href="struct_x_v__csc.html">XV_csc</a> *InstancePtr, u32 width, u32 height)</td></tr>
<tr class="separator:ga4629d6073e73f853f1a0f2cd0a8389a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafea46abdf39a6c7250db829dede2f15c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#gafea46abdf39a6c7250db829dede2f15c">XV_CscSetDemoWindow</a> (<a class="el" href="struct_x_v__csc.html">XV_csc</a> *InstancePtr, XVidC_VideoWindow *ActiveWindow)</td></tr>
<tr class="separator:gafea46abdf39a6c7250db829dede2f15c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga52fbd10107417c5bf615579a922b3a05"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga52fbd10107417c5bf615579a922b3a05">XV_CscInitPowerOnDefault</a> (<a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a> *pCscFwReg)</td></tr>
<tr class="separator:ga52fbd10107417c5bf615579a922b3a05"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga78a3f4dfa6c209aa8813f4f8a061ead1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga78a3f4dfa6c209aa8813f4f8a061ead1">XV_CscSetColorspace</a> (<a class="el" href="struct_x_v__csc.html">XV_csc</a> *InstancePtr, <a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a> *pCscFwReg, XVidC_ColorFormat cfmtIn, XVidC_ColorFormat cfmtOut, XVidC_ColorStd cstdIn, XVidC_ColorStd cstdOut, XVidC_ColorRange cRangeOut)</td></tr>
<tr class="separator:ga78a3f4dfa6c209aa8813f4f8a061ead1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga61872273bba6b9abbbc0c33c88f2be2e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga61872273bba6b9abbbc0c33c88f2be2e">XV_CscSetBrightness</a> (<a class="el" href="struct_x_v__csc.html">XV_csc</a> *InstancePtr, <a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a> *pCscFwReg, s32 val)</td></tr>
<tr class="separator:ga61872273bba6b9abbbc0c33c88f2be2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0c2413a3e1f40ccc228658f666a871b9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga0c2413a3e1f40ccc228658f666a871b9">XV_CscSetContrast</a> (<a class="el" href="struct_x_v__csc.html">XV_csc</a> *InstancePtr, <a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a> *pCscFwReg, s32 val)</td></tr>
<tr class="separator:ga0c2413a3e1f40ccc228658f666a871b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2abcfe4ecefc033d4ff2e8a40d67b26d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga2abcfe4ecefc033d4ff2e8a40d67b26d">XV_CscSetSaturation</a> (<a class="el" href="struct_x_v__csc.html">XV_csc</a> *InstancePtr, <a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a> *pCscFwReg, s32 val)</td></tr>
<tr class="separator:ga2abcfe4ecefc033d4ff2e8a40d67b26d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga61fb14ecf47c0750b6fe617979b4e3c0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga61fb14ecf47c0750b6fe617979b4e3c0">XV_CscSetRedGain</a> (<a class="el" href="struct_x_v__csc.html">XV_csc</a> *InstancePtr, <a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a> *pCscFwReg, s32 val)</td></tr>
<tr class="separator:ga61fb14ecf47c0750b6fe617979b4e3c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga83f3411952ae39fc96ee1dd8d4235191"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga83f3411952ae39fc96ee1dd8d4235191">XV_CscSetGreenGain</a> (<a class="el" href="struct_x_v__csc.html">XV_csc</a> *InstancePtr, <a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a> *pCscFwReg, s32 val)</td></tr>
<tr class="separator:ga83f3411952ae39fc96ee1dd8d4235191"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga29339c4ac19870266ff92220b0c5f489"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga29339c4ac19870266ff92220b0c5f489">XV_CscSetBlueGain</a> (<a class="el" href="struct_x_v__csc.html">XV_csc</a> *InstancePtr, <a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a> *pCscFwReg, s32 val)</td></tr>
<tr class="separator:ga29339c4ac19870266ff92220b0c5f489"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga175432e22080f7c9fc07e034b85e6b65"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__v__csc__v1__0.html#ga175432e22080f7c9fc07e034b85e6b65">XV_CscDbgReportStatus</a> (<a class="el" href="struct_x_v__csc.html">XV_csc</a> *InstancePtr)</td></tr>
<tr class="separator:ga175432e22080f7c9fc07e034b85e6b65"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="ga108893993f5612e665a660d555d2a85c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XV_CscGetBlueGain</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">pCscFwReg</td><td>)</td>
          <td>&#160;&#160;&#160;(((pCscFwReg)-&gt;BlueGain-20)/2)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8h.html">xv_csc_l2.h</a>&gt;</code></p>

<p>This macro returns current blue gain setting by reading layer 2 fw register map. </p>
<p>It also translates between hw register value and user view</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pCscFwReg</td><td>is pointer to csc fw register associated with csc core instance</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>current user view value (0-100) </dd></dl>

</div>
</div>
<a class="anchor" id="gaee13addb78f4259e779282850de811db"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XV_CscGetBrightness</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">pCscFwReg</td><td>)</td>
          <td>&#160;&#160;&#160;(((pCscFwReg)-&gt;Brightness-20)/2)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8h.html">xv_csc_l2.h</a>&gt;</code></p>

<p>This macro returns current brightness setting by reading layer 2 fw register map. </p>
<p>It also translates between hw register value and user view</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pCscFwReg</td><td>is pointer to csc fw register associated with csc core instance</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>current user view value (0-100) </dd></dl>

</div>
</div>
<a class="anchor" id="gafc9516955a3c96103e7eeb26e2a5866a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XV_CscGetColorFormatIn</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">pCscFwReg</td><td>)</td>
          <td>&#160;&#160;&#160;((pCscFwReg)-&gt;ColorFormatIn)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8h.html">xv_csc_l2.h</a>&gt;</code></p>

<p>This macro returns current set input color format by reading layer 2 fw register map. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pCscFwReg</td><td>is pointer to csc fw register associated with csc core instance</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Current set input color format<ul>
<li>XVIDC_CSF_RGB</li>
<li>XVIDC_CSF_YCRCB_444</li>
<li>XVIDC_CSF_YCRCB_422 </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="ga824cfd141b60b80762302011fc30eb7d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XV_CscGetColorFormatOut</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">pCscFwReg</td><td>)</td>
          <td>&#160;&#160;&#160;((pCscFwReg)-&gt;ColorFormatOut)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8h.html">xv_csc_l2.h</a>&gt;</code></p>

<p>This macro returns current set output color format by reading layer 2 fw register map. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pCscFwReg</td><td>is pointer to csc fw register associated with csc core instance</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Current set output color format<ul>
<li>XVIDC_CSF_RGB</li>
<li>XVIDC_CSF_YCRCB_444</li>
<li>XVIDC_CSF_YCRCB_422 </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="gac3a19a1ea0eb2bc79843b99b4fa06ed3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XV_CscGetColorStdIn</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">pCscFwReg</td><td>)</td>
          <td>&#160;&#160;&#160;((pCscFwReg)-&gt;StandardIn)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8h.html">xv_csc_l2.h</a>&gt;</code></p>

<p>This macro returns current set input color standard by reading layer 2 fw register map. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pCscFwReg</td><td>is pointer to csc fw register associated with csc core instance</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Current set input color standard<ul>
<li>XVIDC_BT_2020</li>
<li>XVIDC_BT_709</li>
<li>XVIDC_BT_601 </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="ga22b4ba50722d0e879a147450f5584b88"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XV_CscGetColorStdOut</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">pCscFwReg</td><td>)</td>
          <td>&#160;&#160;&#160;((pCscFwReg)-&gt;StandardOut)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8h.html">xv_csc_l2.h</a>&gt;</code></p>

<p>This macro returns current set output color standard by reading layer 2 fw register map. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pCscFwReg</td><td>is pointer to csc fw register associated with csc core instance</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Current set output color standard<ul>
<li>XVIDC_BT_2020</li>
<li>XVIDC_BT_709</li>
<li>XVIDC_BT_601 </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="gac8781d64df298b2fdf816fd8d43f27ee"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XV_CscGetContrast</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">pCscFwReg</td><td>)</td>
          <td>&#160;&#160;&#160;(((pCscFwReg)-&gt;Contrast+200)/4)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8h.html">xv_csc_l2.h</a>&gt;</code></p>

<p>This macro returns current contrast setting by reading layer 2 fw register map. </p>
<p>It also translates between hw register value and user view</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pCscFwReg</td><td>is pointer to csc fw register associated with csc core instance</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>current user view value (0-100) </dd></dl>

</div>
</div>
<a class="anchor" id="ga138fb789a73e75327cdd4f19f00d2ed2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XV_CscGetGreenGain</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">pCscFwReg</td><td>)</td>
          <td>&#160;&#160;&#160;(((pCscFwReg)-&gt;GreenGain-20)/2)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8h.html">xv_csc_l2.h</a>&gt;</code></p>

<p>This macro returns current green gain setting by reading layer 2 fw register map. </p>
<p>It also translates between hw register value and user view</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pCscFwReg</td><td>is pointer to csc fw register associated with csc core instance</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>current user view value (0-100) </dd></dl>

</div>
</div>
<a class="anchor" id="ga379d39f4ac6437e9d7b8e30b013c0cb0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XV_CscGetOutputRange</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">pCscFwReg</td><td>)</td>
          <td>&#160;&#160;&#160;((pCscFwReg)-&gt;OutputRange)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8h.html">xv_csc_l2.h</a>&gt;</code></p>

<p>This macro returns current set output range by reading layer 2 fw register map. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pCscFwReg</td><td>is pointer to csc fw register associated with csc core instance</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Current set output range<ul>
<li>XVIDC_CR_16_235</li>
<li>XVIDC_CR_16_240</li>
<li>XVIDC_CR_0_255 </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="ga63fc67278726139086bc86bf2ad2b26c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XV_CscGetRedGain</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">pCscFwReg</td><td>)</td>
          <td>&#160;&#160;&#160;(((pCscFwReg)-&gt;RedGain-20)/2)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8h.html">xv_csc_l2.h</a>&gt;</code></p>

<p>This macro returns current red gain setting by reading layer 2 fw register map. </p>
<p>It also translates between hw register value and user view</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pCscFwReg</td><td>is pointer to csc fw register associated with csc core instance</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>current user view value (0-100) </dd></dl>

</div>
</div>
<a class="anchor" id="ga993ec962adf8ab27dcab21bd56f47926"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XV_CscGetSaturation</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">pCscFwReg</td><td>)</td>
          <td>&#160;&#160;&#160;(((pCscFwReg)-&gt;Saturation/2))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8h.html">xv_csc_l2.h</a>&gt;</code></p>

<p>This macro returns current saturation setting by reading layer 2 fw register map. </p>
<p>It also translates between hw register value and user view</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pCscFwReg</td><td>is pointer to csc fw register associated with csc core instance</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>current user view value (0-100) </dd></dl>

</div>
</div>
<a class="anchor" id="gabef8eb94c4d5565838ad595ba71248de"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XV_CscSetColorDepth</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">pCscFwReg, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">val&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;((pCscFwReg)-&gt;ColorDepth = val)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8h.html">xv_csc_l2.h</a>&gt;</code></p>

<p>This macro sets color depth for CSC core. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pCscFwReg</td><td>is a pointer to csc layer 2 fw register map </td></tr>
    <tr><td class="paramname">val</td><td>is the requested color depth</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="ga5727999afb7f47264f4cd625c8b56f8a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__v__csc__v1__0.html#ga5727999afb7f47264f4cd625c8b56f8a">XV_CSC_FW_REG_MMAP</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8h.html">xv_csc_l2.h</a>&gt;</code></p>

<p>CSC Layer 2 Register Map. </p>
<p>Each instance of the csc core will have it's own register map </p>

</div>
</div>
<a class="anchor" id="ga68432f271ffd43e68f01d1463ae33efc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__v__csc__v1__0.html#ga68432f271ffd43e68f01d1463ae33efc">XV_CSC_REG_UPDT_WIN</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8c.html">xv_csc_l2.c</a>&gt;</code></p>

<p>This typedef enumerates the window within which the csc core will have an impact. </p>
<p>Coordinates outside the window will be passed as-is to output </p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="gafb05e2da9695565fba27b542a24b5c9d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__inline s32 cscFw_RegR </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a> *&#160;</td>
          <td class="paramname"><em>pCscFwReg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>offset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8c.html">xv_csc_l2.c</a>&gt;</code></p>

<p>This function provides the read interface for FW register bank. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pCscFwReg</td><td>is a pointer to fw register map of csc core instance </td></tr>
    <tr><td class="paramname">offset</td><td>is register offset</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Register value at requested offset </dd></dl>

</div>
</div>
<a class="anchor" id="ga477fdd65df9d12589cb2c229eef77d2d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__inline void cscFw_RegW </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a> *&#160;</td>
          <td class="paramname"><em>pCscFwReg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">s32&#160;</td>
          <td class="paramname"><em>val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8c.html">xv_csc_l2.c</a>&gt;</code></p>

<p>This function provides the write interface for FW register bank. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pCscFwReg</td><td>is a pointer to fw register map of csc core instance </td></tr>
    <tr><td class="paramname">offset</td><td>is register offset </td></tr>
    <tr><td class="paramname">val</td><td>is data to write</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

<p>Referenced by <a class="el" href="group__v__csc__v1__0.html#ga78a3f4dfa6c209aa8813f4f8a061ead1">XV_CscSetColorspace()</a>.</p>

</div>
</div>
<a class="anchor" id="ga175432e22080f7c9fc07e034b85e6b65"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XV_CscDbgReportStatus </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc.html">XV_csc</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8c.html">xv_csc_l2.c</a>&gt;</code></p>

<p>This function prints CSC IP status on console. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is the instance pointer to the CSC IP instance to be worked on</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

<p>References <a class="el" href="struct_x_v__csc___config.html#a6d417ab64536fbdf3f59049d3161d365">XV_csc_Config::BaseAddress</a>, and <a class="el" href="struct_x_v__csc.html#aa5c39284c336caccb3d700680b1f73ed">XV_csc::Config</a>.</p>

</div>
</div>
<a class="anchor" id="ga52fbd10107417c5bf615579a922b3a05"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XV_CscInitPowerOnDefault </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a> *&#160;</td>
          <td class="paramname"><em>pCscFwReg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8c.html">xv_csc_l2.c</a>&gt;</code></p>

<p>This function sets the CSC IP layer 2 fw registers to power on default state. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pCscFwReg</td><td>is a pointer to the layer 2 fw register bank</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
<a class="anchor" id="ga4629d6073e73f853f1a0f2cd0a8389a6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XV_CscSetActiveSize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc.html">XV_csc</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8c.html">xv_csc_l2.c</a>&gt;</code></p>

<p>This function set the frame resolution for the Color space converter This also will reset the demo window to full frame. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the core instance to be worked on. </td></tr>
    <tr><td class="paramname">width</td><td>is the input stream width </td></tr>
    <tr><td class="paramname">height</td><td>is the input stream height</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
<a class="anchor" id="ga29339c4ac19870266ff92220b0c5f489"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XV_CscSetBlueGain </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc.html">XV_csc</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a> *&#160;</td>
          <td class="paramname"><em>pCscFwReg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">s32&#160;</td>
          <td class="paramname"><em>val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8c.html">xv_csc_l2.c</a>&gt;</code></p>

<p>This function set blue gain to specified value. </p>
<p>It also translates user setting of 0-100 to hw register range</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is pointer to csc core instance </td></tr>
    <tr><td class="paramname">pCscFwReg</td><td>is a pointer to layer 2 fw register bank </td></tr>
    <tr><td class="paramname">val</td><td>is new gain value</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
<a class="anchor" id="ga61872273bba6b9abbbc0c33c88f2be2e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XV_CscSetBrightness </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc.html">XV_csc</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a> *&#160;</td>
          <td class="paramname"><em>pCscFwReg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">s32&#160;</td>
          <td class="paramname"><em>val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8c.html">xv_csc_l2.c</a>&gt;</code></p>

<p>This function set brightness to specified value. </p>
<p>It also translates user setting of 0-100 to hw register range</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is pointer to csc core instance </td></tr>
    <tr><td class="paramname">pCscFwReg</td><td>is a pointer to layer 2 fw register bank </td></tr>
    <tr><td class="paramname">val</td><td>is new brightness value</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
<a class="anchor" id="ga78a3f4dfa6c209aa8813f4f8a061ead1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XV_CscSetColorspace </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc.html">XV_csc</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a> *&#160;</td>
          <td class="paramname"><em>pCscFwReg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XVidC_ColorFormat&#160;</td>
          <td class="paramname"><em>cfmtIn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XVidC_ColorFormat&#160;</td>
          <td class="paramname"><em>cfmtOut</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XVidC_ColorStd&#160;</td>
          <td class="paramname"><em>cstdIn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XVidC_ColorStd&#160;</td>
          <td class="paramname"><em>cstdOut</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XVidC_ColorRange&#160;</td>
          <td class="paramname"><em>cRangeOut</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8c.html">xv_csc_l2.c</a>&gt;</code></p>

<p>This function configures the Color space converter to user specified settings. </p>
<p>Before any feature specific calls in layer-2 driver is made csc core should have been configured via this call.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the core instance to be worked on. </td></tr>
    <tr><td class="paramname">pCscFwReg</td><td>is pointer to layer 2 register bank </td></tr>
    <tr><td class="paramname">cfmtIn</td><td>is input color space </td></tr>
    <tr><td class="paramname">cfmtOut</td><td>is output color space </td></tr>
    <tr><td class="paramname">cstdIn</td><td>is input color standard </td></tr>
    <tr><td class="paramname">cstdOut</td><td>is output color standard </td></tr>
    <tr><td class="paramname">cRangeOut</td><td>is the selected output range</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

<p>References <a class="el" href="group__v__csc__v1__0.html#ga477fdd65df9d12589cb2c229eef77d2d">cscFw_RegW()</a>.</p>

</div>
</div>
<a class="anchor" id="ga0c2413a3e1f40ccc228658f666a871b9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XV_CscSetContrast </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc.html">XV_csc</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a> *&#160;</td>
          <td class="paramname"><em>pCscFwReg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">s32&#160;</td>
          <td class="paramname"><em>val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8c.html">xv_csc_l2.c</a>&gt;</code></p>

<p>This function set contrast to specified value. </p>
<p>It also translates user setting of 0-100 to hw register range</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is pointer to csc core instance </td></tr>
    <tr><td class="paramname">pCscFwReg</td><td>is a pointer to layer 2 fw register bank </td></tr>
    <tr><td class="paramname">val</td><td>is new contrast value</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
<a class="anchor" id="gafea46abdf39a6c7250db829dede2f15c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XV_CscSetDemoWindow </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc.html">XV_csc</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XVidC_VideoWindow *&#160;</td>
          <td class="paramname"><em>ActiveWindow</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8c.html">xv_csc_l2.c</a>&gt;</code></p>

<p>This function set the demo window for the Color space converter. </p>
<p>Any pixel outside the demo window will not be impacted and will be passed to output as-is</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the core instance to be worked on. </td></tr>
    <tr><td class="paramname">ActiveWindow</td><td>is structure that contains window coordinates and size</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
<a class="anchor" id="ga83f3411952ae39fc96ee1dd8d4235191"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XV_CscSetGreenGain </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc.html">XV_csc</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a> *&#160;</td>
          <td class="paramname"><em>pCscFwReg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">s32&#160;</td>
          <td class="paramname"><em>val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8c.html">xv_csc_l2.c</a>&gt;</code></p>

<p>This function set green gain to specified value. </p>
<p>It also translates user setting of 0-100 to hw register range</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is pointer to csc core instance </td></tr>
    <tr><td class="paramname">pCscFwReg</td><td>is a pointer to layer 2 fw register bank </td></tr>
    <tr><td class="paramname">val</td><td>is new gain value</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
<a class="anchor" id="ga61fb14ecf47c0750b6fe617979b4e3c0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XV_CscSetRedGain </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc.html">XV_csc</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a> *&#160;</td>
          <td class="paramname"><em>pCscFwReg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">s32&#160;</td>
          <td class="paramname"><em>val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8c.html">xv_csc_l2.c</a>&gt;</code></p>

<p>This function set red gain to specified value. </p>
<p>It also translates user setting of 0-100 to hw register range</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is pointer to csc core instance </td></tr>
    <tr><td class="paramname">pCscFwReg</td><td>is a pointer to layer 2 fw register bank </td></tr>
    <tr><td class="paramname">val</td><td>is new gain value</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
<a class="anchor" id="ga2abcfe4ecefc033d4ff2e8a40d67b26d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XV_CscSetSaturation </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc.html">XV_csc</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc___l2_reg.html">XV_csc_L2Reg</a> *&#160;</td>
          <td class="paramname"><em>pCscFwReg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">s32&#160;</td>
          <td class="paramname"><em>val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8c.html">xv_csc_l2.c</a>&gt;</code></p>

<p>This function set saturation to specified value. </p>
<p>It also translates user setting of 0-100 to hw register range</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is pointer to csc core instance </td></tr>
    <tr><td class="paramname">pCscFwReg</td><td>is a pointer to layer 2 fw register bank </td></tr>
    <tr><td class="paramname">val</td><td>is new saturation value</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
<a class="anchor" id="ga0b7c1083efbd024fb713f1c2ff866236"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XV_CscStart </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc.html">XV_csc</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8c.html">xv_csc_l2.c</a>&gt;</code></p>

<p>This function starts the Color space converter core. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the core instance to be worked on.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
<a class="anchor" id="gaa7f7e27accbaf3e3c9c863b55f13a0b1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XV_CscStop </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_v__csc.html">XV_csc</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xv__csc__l2_8c.html">xv_csc_l2.c</a>&gt;</code></p>

<p>This function stops the Color space converter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the core instance to be worked on.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
</div><!-- contents -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Copyright &copy; 2015 Xilinx Inc. All rights reserved.</li>
  </ul>
</div>
</body>
</html>
